package com.Monica.demo01;

public class Proxy implements Rent{
    private Master master;

    public Proxy() {
    }

    public Proxy(Master master) {
        this.master = master;
    }

    public void rent() {
        seeHouse();
        master.rent();
        fare();
    }
    //看房
    public void seeHouse(){
        System.out.println("中介带你看房");
    }
    //收中介费
    public void fare(){
        System.out.println("中介收中介费");
    }
}
